#!/bin/bash
pacman -S --noconfirm arch-wiki-docs
sed -i 's/:root/:root:allow-discards/g' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
echo 'options iwlwifi power_save=0' > /etc/modprobe.d/iwlwifi.conf
echo 'ACTION=="add", SUBSYSTEM=="net", KERNEL=="wl*", RUN+="/usr/bin/iw dev $name set power_save off"' > /etc/udev/rules.d/81-wifi-powersave.rules